package po;

public class Type {
    private int tid;
    private String name;

    public Type(String name, int num) {
        this.name = name;
        this.num = num;
    }

    private String text;

    private int num;

    public Type(int tid, String name, String text,int num) {
        this.tid = tid;
        this.name = name;
        this.text = text;
        this.num=num;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void showType(){
        System.out.println(num+". "+name+" "+text);
    }
}
